package com.watering.plan;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;

/*
 *  This class handles the Leaffy anouncement.
 *  Displays an image with Leffy and links 
 *  to the next intent.
 *  
 *  Layout : leaffy.xml
 *  img : leaffy.png
 */


public class Leaffy extends Activity implements OnClickListener{
	
	private ImageView mIV;
    private Bitmap mBitmap;
    public MainNotifier mn;
    public CreateDatabase cd;
    
	    @Override
	    public void onCreate(Bundle savedInstanceState) {
	    	
	    	super.onCreate(savedInstanceState);
	         setContentView(R.layout.leaffy);
	         
	         cd = new CreateDatabase();
	         mn = new MainNotifier();
	         
	         mBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.leaffy); 
	         mIV = (ImageView)findViewById(R.id.leaffy);
	         mIV.setImageBitmap(mBitmap); 
	         mIV.setOnClickListener(this);
	         
	        }
	    
		public void onClick(View arg0) {
			
			Intent myIntent = new Intent(this, com.watering.plan.MainMenu.class);
			startActivity(myIntent); 
			
		}
		
	    
	 }

